<template>
  <div class="bottom-bar">
    <div class="contents">
      <div>
        <img src="~assets/img/tabbar/cart.svg" alt="" />
        <p>客服</p>
      </div>
      <div>
        <img src="~assets/img/tabbar/cart.svg" alt="" />
        <p>客服</p>
      </div>
      <div>
        <img src="~assets/img/tabbar/cart.svg" alt="" />
        <p>客服</p>
      </div>
    </div>
    <div class="btn">
      <div class="add-cart" @click="addCart">加入购物车</div>
      <div class="purchase">购买</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    addCart() {
      this.$emit('addCart')
    }
  },
};
</script>

<style scoped>
.bottom-bar {
  height: 49px;
  background-color: #ffffff;
  position: relative;
}
.contents {
  width: 50%;
  display: flex;
  justify-content: space-evenly;
  float: left;
}
.contents img {
  height: 29px;
}
.add-cart {
  background: blanchedalmond;
}
.purchase {
  background: var(--color-tint);
}
.btn{
    width: 50%;
    float: left;
}
.add-cart,.purchase{
    height: 25px;
    line-height: 25px;
    text-align: center;
}
</style>